home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / footmain.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  3.7 KB  |  121 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef footmainH
  7. #define footmainH
  8. //---------------------------------------------------------------------------
  9. #include <Classes.hpp>
  10. #include <Controls.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Forms.hpp>
  13. #include <ExtCtrls.hpp>
  14. #include <ComCtrls.hpp>
  15. #include <Buttons.hpp>
  16. #include <Menus.hpp>
  17. const int RBTOP = 58;
  18. const int RBMIDDLE = 74;
  19. const int RBBOTTOM = 90;
  20. const int RBLEFT = 36;
  21. const int TACKLETOP = 59;
  22. const int TACKLEMIDDLE = 75;
  23. const int TACKLEBOTTOM = 91;
  24. const int TACKLEROW1 = 104;
  25. const int TACKLEROW2 = 148;
  26. const int TACKLEROW3 = 236;
  27.  
  28. struct spot
  29. {
  30.     TLabel* player;
  31.     bool    rb;
  32. };
  33.  
  34. //---------------------------------------------------------------------------
  35. class TForm1 : public TForm
  36. {
  37. __published:    // IDE-managed Components 
  38.     TImage *Image7;
  39.     TLabel *HomeDisplay;
  40.     TLabel *TimeDisplay;
  41.     TLabel *VisitorDisplay;
  42.     TLabel *Runningback;
  43.     TLabel *Tackler1;
  44.     TLabel *Tackler2;
  45.     TLabel *Tackler3;
  46.     TLabel *Tackler4;
  47.     TLabel *Tackler5;
  48.     TTimer *Timer;
  49.     TMainMenu *MainMenu1;
  50.     TMenuItem *Help1;
  51.     TMenuItem *About1;
  52.     TMenuItem *File1;
  53.     TMenuItem *Exit1;
  54.     TLabel *HomeLabel;
  55.     TLabel *TimeLabel;
  56.     TLabel *VisitorLabel;
  57.     TTimer *Clock;
  58.     TImage *Forward;
  59.     TImage *Image2;
  60.     TImage *Image3;
  61.     TImage *KickButton;
  62.     TImage *Score;
  63.     TLabel *Label2;
  64.     TLabel *Label1;
  65.     TTrackBar *OnOffSwitch;
  66.     TLabel *Label3;
  67.     TLabel *DownDisplay;
  68.     TLabel *FieldPosDisplay;
  69.     TLabel *YTGDisplay;
  70.     TLabel *DownLabel;
  71.     TLabel *FieldPosLabel;
  72.     TLabel *YTGLabel;
  73.     TButton *Computer;
  74.    TImage *Back;
  75.     void __fastcall MoveForward(TObject *Sender);
  76.     void __fastcall MoveUp(TObject *Sender);
  77.     void __fastcall MoveDown(TObject *Sender);
  78.     void __fastcall Switched(TObject *Sender);
  79.     void __fastcall TimerTimer(TObject *Sender);
  80.     void __fastcall ResetGame(TObject *Sender);
  81.     void __fastcall Exit1Click(TObject *Sender);
  82.     void __fastcall About1Click(TObject *Sender);
  83.     
  84.     
  85.     void __fastcall ShowStats(TObject *Sender, TMouseButton Button,
  86.       TShiftState Shift, int X, int Y);
  87.     
  88.     void __fastcall HideStats(TObject *Sender, TMouseButton Button,
  89.       TShiftState Shift, int X, int Y);
  90.  
  91.     void __fastcall Kick(TObject *Sender);
  92.     void __fastcall ClockTick(TObject *Sender);
  93.     
  94.     void __fastcall ComputerClick(TObject *Sender);
  95.    void __fastcall FormKeyPress(TObject *Sender, char &Key);
  96.    void __fastcall MoveBack(TObject *Sender);
  97. private:        // User declarations
  98.     spot field[10][3];  // the X and Y coordinates of the field
  99.     int  rbx, rby;      // the X and Y coordinates of the runningback
  100.     bool running;
  101.     TLabel *LastSack;
  102.     int YardsToGo;
  103.     int Down;
  104.     int FieldPosition;
  105.     int Home;
  106.     int Visitor;
  107.     int Quarter;
  108.     float TimeLeft;
  109.     void __fastcall ShowField(bool visible);
  110.     void __fastcall ResetField(void);
  111.     void __fastcall Sacked(TLabel*);
  112.     void __fastcall ShowDisplay(bool visible);
  113.     void __fastcall TogglePlay(bool toggle);
  114. public:         // User declarations
  115.     virtual __fastcall TForm1(TComponent* Owner);
  116. };
  117. //---------------------------------------------------------------------------
  118. extern TForm1 *Form1;
  119. //---------------------------------------------------------------------------
  120. #endif
  121.